import { instance } from "../utils/request";
const getDictionaryTypesPagination = async (params) => {
	return await instance.get("/DictionaryTypes/Pagination", params);
};

const addDictionaryTypes = async (data) => {
	return await instance.post("/DictionaryTypes/Add", data);
};

const updateDictionaryTypes = async (data) => {
	return await instance.post("/DictionaryTypes/Update", data);
};

const getDictionaryTypesDetail = async (id) => {
	return await instance.get("/DictionaryTypes/Detail", { id : id });
};

const deleteDictionaryTypes = async (id) => {
	return await instance.post("/DictionaryTypes/Delete", { id : id });
};

const dictionaryTypesApi = {
	getDictionaryTypesPagination,
	addDictionaryTypes,
	updateDictionaryTypes,
	getDictionaryTypesDetail,
	deleteDictionaryTypes,
};

export default dictionaryTypesApi
